<?php
/* @var $this RekeningController */
/* @var $model Rekening */
/* @var $form CActiveForm */
?>

<div class="form">

<?php  $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
        'id' => 'horizontalForm',
        'type' => 'horizontal',
        'enableAjaxValidation' => false,
    )); 
?>

<p class="note">Fields with <span class="required">*</span> are required.</p>

<?php echo $form->errorSummary($model); ?>

    <div class="control-group ">
        <label class="control-label">ID Rekening</label>
        <div class="controls">
             <?php echo $form->textField($model, 'id_rekening'); ?>
        </div>
    </div>

    <div class="control-group ">
        <label class="control-label">Nomor Rekening</label>
        <div class="controls">
             <?php echo $form->textField($model, 'no_rekening', array('size' => 20, 'maxlength' => 20)); ?>
        </div>
    </div>

    <div class="control-group ">
        <label class="control-label">Nama Rekening</label>
        <div class="controls">
             <?php echo $form->textField($model, 'nama_rekening', array('size' => 75, 'maxlength' => 75)); ?>
        </div>
    </div>

    <div class="control-group ">
        <label class="control-label">Nama Pajak</label>
        <div class="controls">
             <?php echo $form->DropDownList($model,'kode_pajak', CHtml::listData(Pajak::model()->findAll(),'kode_pajak', 'nama_pajak'), array('class'=>'span3')); ?>        
        </div>
    </div>


    <div class="control-group ">
        <label class="control-label">Tarif Pajak</label>
        <div class="controls">
             <?php echo $form->textField($model, 'tarif'); ?>
        </div>
    </div>

    <div class="control-group ">
        <label class="control-label">Status</label>
        <div class="controls">
             <?php echo $form->textField($model, 'status', array('size' => 2, 'maxlength' => 2)); ?>
        </div>
    </div>  

    <div class="control-group ">
        <label class="control-label">Tampil</label>
        <div class="controls">
             <?php echo $form->textField($model, 'tampil', array('size' => 2)); ?>
        </div>
    </div>  

    <div class="control-group ">
        <label class="control-label">Keterangan</label>
        <div class="controls">
             <?php echo $form->textField($model, 'keterangan', array('size' => 250)); ?>
        </div>
    </div>  

    <?php
        $this->widget('bootstrap.widgets.TbButton', array(
                'buttonType' => 'submit',
                'type' => 'success',
				'icon' => 'save',
				'label' => 'Simpan',
            'htmlOptions'=>array('style'=>'margin-left:170px'),
         ));
    ?>

<?php $this->endWidget(); ?>

</div><!-- form -->